package com.codedancer.campus.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.codedancer.campus.common.core.BaseMapper;
import com.codedancer.campus.po.Admin;
import com.codedancer.campus.qo.admin.AdminPageSearchQo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper extends BaseMapper<Admin> {

    /**
     * 分页查询管理员
     *
     * @param adminPage
     * @param adminPageSearchQo
     * @return
     */
    IPage<Admin> page(Page<Admin> adminPage,
                      @Param("adminPageSearchQo") AdminPageSearchQo adminPageSearchQo);

    /**
     * 获取超级管理员信息
     *
     * @return
     */
    Admin selectSuperAdmin();

    /**
     * 获取全部客服管理员
     *
     * @return
     */
    List<Admin> listAllCustomerAdmin();
}
